<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCardNumsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('card_nums', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('card_id')->nullable()->comment('卡名称');
            $table->string('key')->nullable()->comment('密钥');
            $table->integer('status')->default('0')->nullable()->comment('状态');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('card_nums');
    }
}
